package com.jing.cloud.service.api.util;

import com.jing.cloud.service.user.bean.Ticket;

/**
 * Created by 29017 on 2017/9/18.
 */
public class ThreadLocalUtil {
    private static ThreadLocal<Ticket> ticketThreadLocal = new ThreadLocal<>();

    public static void setTicket(Ticket ticket) {
        ticketThreadLocal.set(ticket);
    }

    public static Ticket getTicket() {
        return ticketThreadLocal.get();
    }
}
